[Components]
Tools.LPSU


[Defines]
USER=AllUsers
SOURCE_DIR=$CD_ROOT_DIR$\Tools\LocalPrinterSetup

OLD_LPSU_SHORTCUT_DESC=%Uninstall.OLD_LPSU_SHORTCUT_DESC%
LPSU_SHORTCUT_DESC=%Components.LPSU%
DK_LPSU_SHORTCUT_DESC=%DK% %Components.LPSU%
LPSUDisplay=%LPSUDisplay%
LPSU_INSTALLDIR=%LPSU_INSTALLDIR%
REG_SUFFIX=%REG_SUFFIX%
NOT_DELL=<SetLabel,$OEM$,NE,Dell Printers>
DELL=<SetLabel,$OEM$,EQ,Dell Printers>
ERROR=LPSU External Req failure
INSTALL_DIR=<ReadReg,HKLM,Software\Lexmark\Local Printer Setup\LPSU80,%LPSU_INSTALLDIR%>
MODEL_NAME=<ReadISF,ScreenFonts,Model>
STARTMENU_NAME=%DK_SM_NAME%
MANUF=%MANUF%
LPSU_UPGRADE=<ExistFile,$INSTALL_DIR$\lexprtsu.exe>

[LPSU]
Platform=9X,NT,2K,XP,VISTA
[NT,2K,XP,VISTA,FUTURE_OS]Requires=ENetwork
SourceLocation=$SOURCE_DIR$
OEMCommon=0

[LPSU_CleanUp]
[$NOT_DELL$]ShortCut,Delete,DESKTOP,$USER$,$LPSUDisplay$ $OLD_LPSU_SHORTCUT_DESC$
[$NOT_DELL$]ShortCut,Delete,STARTMENU\$OEM$\$LPSU_SHORTCUT_DESC$,$USER$
[$LPSU_UPGRADE$]File,Copy,$INSTALL_DIR$\cfg\*.ini,$INSTALL_DIR$\app\cfg\
[$LPSU_UPGRADE$]File,Delete,$INSTALL_DIR$\cfg\*.*
[$LPSU_UPGRADE$]File,Delete,$INSTALL_DIR$\usbsend\*.*
[$LPSU_UPGRADE$]File,Delete,$INSTALL_DIR$\*.*


[LPSU_ACTIONS]
File,Copy,$SOURCE_DIR$\*.ini,$INSTALL_DIR$\app\cfg\
# English in case chosen language doesn't exist
[$DELL$]File,Copy,$SOURCE_DIR$\en\*.*,$INSTALL_DIR$\app\
[$DELL$]File,Copy,$SOURCE_DIR$\x86\en\*.*,$INSTALL_DIR$\app\
File,Copy,$SOURCE_DIR$\$LANGUAGE$\*.*,$INSTALL_DIR$\app\
File,Copy,$SOURCE_DIR$\x86\$LANGUAGE$\*.*,$INSTALL_DIR$\app\
File,Copy,$SOURCE_DIR$\x86\*.*,$INSTALL_DIR$\app\
File,Copy,$SOURCE_DIR$\resource\*.*,$INSTALL_DIR$\resource\
#
#SHORTCUTS & REG ENTRIES
[$NOT_DELL$]ShortCut,Add,DESKTOP,$USER$,$INSTALL_DIR$\app\lexprtsu.exe,$LPSUDisplay$
[$NOT_DELL$]ShortCut,Add,STARTMENU\$OEM$,$USER$,$INSTALL_DIR$\app\lexprtsu.exe,$LPSU_SHORTCUT_DESC$
[$DELL$]ShortCut,Add,STARTMENU\$STARTMENU_NAME$\$MODEL_NAME$,$USER$,$INSTALL_DIR$\app\lexprtsu.exe,$DK_LPSU_SHORTCUT_DESC$
[$DELL$]ShortCut,Add,DESKTOP,$USER$,$INSTALL_DIR$\app\lexprtsu.exe, $DK_LPSU_SHORTCUT_DESC$
RegistryEntry,Add,HKLM,Software\Lexmark\Local Printer Setup\LPSU80,InstallDir$REG_SUFFIX$,STR,$INSTALL_DIR$
RegistryEntry,Add,HKLM,Software\Lexmark\Local Printer Setup\LPSU80,CurrentSaveDir$REG_SUFFIX$,STR,$INSTALL_DIR$\app
RegistryEntry,Add,HKLM,Software\Lexmark\Local Printer Setup\LPSU80,EnableActiveHelp$REG_SUFFIX$,NUM,0x0000ffff
RegistryEntry,Add,HKLM,Software\Lexmark\Local Printer Setup\LPSU80,RegionalSettings$REG_SUFFIX$,STR,US
RegistryEntry,Add,HKLM,Software\Lexmark\Local Printer Setup\LPSU80,ShowNonBidiDialog$REG_SUFFIX$,NUM,1


[LPSU_ACTIONS_64]
File,Copy,$SOURCE_DIR$\*.ini,$INSTALL_DIR$\app\cfg\
# English in case chose language doesn't exist
[$DELL$]File,Copy,$SOURCE_DIR$\en\*.*,$INSTALL_DIR$\app\
[$DELL$]File,Copy,$SOURCE_DIR$\x86\en\*.*,$INSTALL_DIR$\app\
File,Copy,$SOURCE_DIR$\$LANGUAGE$\*.*,$INSTALL_DIR$\app\
File,Copy,$SOURCE_DIR$\x86\$LANGUAGE$\*.*,$INSTALL_DIR$\app\
File,Copy,$SOURCE_DIR$\x86\*.*,$INSTALL_DIR$\app\
File,Copy,$SOURCE_DIR$\resource\*.*,$INSTALL_DIR$\resource\
#
#SHORTCUTS & REG ENTRIES
[$NOT_DELL$]ShortCut,Add,DESKTOP,$USER$,$INSTALL_DIR$\app\lexprtsu.exe,$LPSUDisplay$
[$NOT_DELL$]ShortCut,Add,STARTMENU\$OEM$,$USER$,$INSTALL_DIR$\app\lexprtsu.exe,$LPSU_SHORTCUT_DESC$
[$DELL$]ShortCut,Add,STARTMENU\$STARTMENU_NAME$\$MODEL_NAME$,$USER$,$INSTALL_DIR$\app\lexprtsu.exe,$DK_LPSU_SHORTCUT_DESC$
[$DELL$]ShortCut,Add,DESKTOP,$USER$,$INSTALL_DIR$\app\lexprtsu.exe, $DK_LPSU_SHORTCUT_DESC$
RegistryEntry,Add,HKLM,Software\Wow6432Node\Lexmark\Local Printer Setup\LPSU80,InstallDir$REG_SUFFIX$,STR,$INSTALL_DIR$
RegistryEntry,Add,HKLM,Software\Wow6432Node\Lexmark\Local Printer Setup\LPSU80,CurrentSaveDir$REG_SUFFIX$,STR,$INSTALL_DIR$\app
RegistryEntry,Add,HKLM,Software\Wow6432Node\Lexmark\Local Printer Setup\LPSU80,EnableActiveHelp$REG_SUFFIX$,NUM,0x0000ffff
RegistryEntry,Add,HKLM,Software\Wow6432Node\Lexmark\Local Printer Setup\LPSU80,RegionalSettings$REG_SUFFIX$,STR,US
RegistryEntry,Add,HKLM,Software\Wow6432Node\Lexmark\Local Printer Setup\LPSU80,ShowNonBidiDialog$REG_SUFFIX$,NUM,1



